class AddTestData < ActiveRecord::Migration


    def self.up
    ExaminationType.delete_all
     # dodaje przykladowae badania do bazy
    ExaminationType.create(

      :name => 'Badanie krwi',
      :body => 'opis badania z wybranymi wynikami' )

      ExaminationType.create(

      :name => 'Badanie moczu',
      :body => 'opis badania z wybranymi wynikami' )

      Patient.delete_all
     # dodaje przykladowae badania do bazy
    Patient.create(

    :name => 'Jan',
    :surname => 'Kowalski',
    :pesel => 1234,
    :email_address =>'asas@sa.pl',
    :address => 'Jdsadsadasd adf',
    :phone => 48542164)


  end
  def self.down
    ExaminationType.delete_all
    Patient.delete_all
  end
end